﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.Product.Domain.Product;
using W.Product.Repository.Interface;

namespace W.Product.Repository.Impl
{
    public class ProductRepository : BaseRepository<ProductInfo>, IProductRepository
    {
        public ProductRepository(EFProductDbContext db) : base(db)
        {
        }


        public async Task<int> Add(ProductInfo entity)
        {
            return await base.Add(entity);  
        }

        public async Task<ProductInfo> FindById(int id)
        {
            return await base.FindById(id);

        }

        public async Task<List<ProductInfo>> GetAll()
        {
            return await base.GetAll();
        }

        public async Task<int> Update(ProductInfo entity)
        {
            return await base.Update(entity);
        }
        public async Task<int> Delete(int id)
        {
            return await base.Delete(id);
        }

        public async Task<int> IsUpdate(List<ProductInfo> values)
        {
            return await base.IsUpdate(values);
        }
    }
}
